<?php
class htmlControl extends skymvc{
	
	public function __construct(){
		parent::__construct();
		
	}
	
	public function onDefault(){
		$this->smarty->display("html/".str_replace(ROOT_PATH,"",get('a','h')).".html");		
	}
	
	public function onGet(){
		$word=get('word','h');
		$data=M("dataapi")->getWord($word);
		$this->goAll("success",0,$data);
	}
}
?>